package cn.levi.excel.module;

import cn.hutool.poi.excel.ExcelWriter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author zhouLiang
 * @create 2024-04-06 20:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ImportBo implements Serializable {

    private static final long serialVersionUID = 42L;
    /**
     * 成功条数
     */
    private Integer successNum;

    /**
     * 失败条数
     */
    private Integer failNum;

    /**
     * 错误提示
     */
    private String errorMsg;

    /**
     * 导入是失败的异常excel
     */
    @JsonIgnore
    private transient ExcelWriter failExcel;

}
